package top.kpromise.note.modules.user.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class LoginUser {

    @ApiModelProperty(name = "userName" , value = "用户名", example = "chun")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(name = "password" , value = "密码，md5 32加密", example = "e10adc3949ba59abbe56e057f20f883e")
    @NotBlank(message = "密码不能为空")
    @Length(min = 32, max = 32, message = "密码必须是md5 32加密")
    private String password;
}
